package ltd.newbee.mall.config.annotation;

import java.lang.annotation.*;

/**
 * @description: 防止表单重复提交
 * @author: qzx
 * @date: 2022-08-13 16:29
 * @version: 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PreventSubmit {

    /**
     * 保存key
     */
    String key() default "prevent:submit:";

    /**
     * expireTime 有效时间(秒)
     */
    int expireTime() default 5;
}
